home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / biff_and.swf / scripts / DefineSprite_44_RedFish / frame_2 / DoAction.as
Encoding:
Text File  |  2011-06-09  |  10.1 KB  |  311 lines

  1. function ┬º\x01\x02┬º()
  2. {
  3.    return 602 % 511 * 5;
  4. }
  5. var ┬º\x01┬º = 229 + "\x01\x02"();
  6. while(true)
  7. {
  8.    if(eval("\x01") == 684)
  9.    {
  10.       set("\x01",eval("\x01") + 231);
  11.       ┬º┬ºpush(true);
  12.    }
  13.    else if(eval("\x01") == 352)
  14.    {
  15.       set("\x01",eval("\x01") + 584);
  16.    }
  17.    else
  18.    {
  19.       if(eval("\x01") == 820)
  20.       {
  21.          set("\x01",eval("\x01") - 468);
  22.          ┬º┬ºpush([]);
  23.          break;
  24.       }
  25.       if(eval("\x01") == 323)
  26.       {
  27.          set("\x01",eval("\x01") - 69);
  28.          break;
  29.       }
  30.       if(eval("\x01") == 898)
  31.       {
  32.          set("\x01",eval("\x01") - 587);
  33.          ┬º┬ºpush(true);
  34.       }
  35.       else if(eval("\x01") == 76)
  36.       {
  37.          set("\x01",eval("\x01") + 860);
  38.       }
  39.       else if(eval("\x01") == 936)
  40.       {
  41.          set("\x01",eval("\x01") - 683);
  42.          ┬º┬ºpush(true);
  43.       }
  44.       else if(eval("\x01") == 253)
  45.       {
  46.          set("\x01",eval("\x01") + 70);
  47.          if(function ┬º\x01\x02┬º()
  48.          {
  49.             return 602 % 511 * 5;
  50.          })
  51.          {
  52.             set("\x01",eval("\x01") - 69);
  53.          }
  54.       }
  55.       else if(eval("\x01") == 324)
  56.       {
  57.          set("\x01",eval("\x01") + 574);
  58.       }
  59.       else if(eval("\x01") == 311)
  60.       {
  61.          set("\x01",eval("\x01") + 509);
  62.          if(function ┬º\x01\x02┬º()
  63.          {
  64.             return 602 % 511 * 5;
  65.          })
  66.          {
  67.             set("\x01",eval("\x01") - 468);
  68.          }
  69.       }
  70.       else if(eval("\x01") == 254)
  71.       {
  72.          set("\x01",eval("\x01") - 213);
  73.       }
  74.       else if(eval("\x01") == 915)
  75.       {
  76.          set("\x01",eval("\x01") - 816);
  77.          if(function ┬º\x01\x02┬º()
  78.          {
  79.             return 602 % 511 * 5;
  80.          })
  81.          {
  82.             set("\x01",eval("\x01") + 225);
  83.          }
  84.       }
  85.       else if(eval("\x01") == 848)
  86.       {
  87.          set("\x01",eval("\x01") - 807);
  88.       }
  89.       else if(eval("\x01") == 41)
  90.       {
  91.          set("\x01",eval("\x01") + 885);
  92.          ┬º┬ºpush("\x0f");
  93.          ┬º┬ºpush(1);
  94.       }
  95.       else if(eval("\x01") == 926)
  96.       {
  97.          set("\x01",eval("\x01") - 738);
  98.          var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  99.          {
  100.             return 602 % 511 * 5;
  101.          };
  102.       }
  103.       else if(eval("\x01") == 964)
  104.       {
  105.          set("\x01",eval("\x01") - 66);
  106.       }
  107.       else
  108.       {
  109.          if(eval("\x01") == 99)
  110.          {
  111.             set("\x01",eval("\x01") + 225);
  112.             ┬º┬ºpop() extends function ┬º\x01\x02┬º()
  113.             {
  114.                return 602 % 511 * 5;
  115.             };
  116.             ┬º┬ºpush({});
  117.             break;
  118.          }
  119.          if(eval("\x01") == 188)
  120.          {
  121.             set("\x01",eval("\x01") - 7);
  122.             ┬º┬ºpush("\x0f");
  123.          }
  124.          else if(eval("\x01") == 181)
  125.          {
  126.             set("\x01",eval("\x01") + 155);
  127.             ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  128.             {
  129.                return 602 % 511 * 5;
  130.             }));
  131.          }
  132.          else if(eval("\x01") == 336)
  133.          {
  134.             set("\x01",eval("\x01") - 261);
  135.             ┬º┬ºpush(!function ┬º\x01\x02┬º()
  136.             {
  137.                return 602 % 511 * 5;
  138.             });
  139.          }
  140.          else if(eval("\x01") == 75)
  141.          {
  142.             set("\x01",eval("\x01") - 69);
  143.             if(function ┬º\x01\x02┬º()
  144.             {
  145.                return 602 % 511 * 5;
  146.             })
  147.             {
  148.                set("\x01",eval("\x01") + 92);
  149.             }
  150.          }
  151.          else
  152.          {
  153.             if(eval("\x01") != 6)
  154.             {
  155.                if(eval("\x01") == 98)
  156.                {
  157.                   set("\x01",eval("\x01") + 214);
  158.                   FishControl = function()
  159.                   {
  160.                      pos = this._x;
  161.                      offsetBiffX = _root.Biff._x - this._x;
  162.                      offsetBiffY = Math.abs(_root.Biff._y - this._y);
  163.                      offsetBaffX = _root.Baff._x - this._x;
  164.                      offsetBaffY = Math.abs(_root.Baff._y - this._y);
  165.                      if(offsetBiffX < 350 && offsetBiffX > 0 && offsetBiffY < 30 || offsetBaffX < 350 && offsetBaffX > 0 && offsetBaffY < 30)
  166.                      {
  167.                         if(xSpeed > 0)
  168.                         {
  169.                            xSpeed = - xSpeed - 4;
  170.                            this._xscale = - this._xscale;
  171.                         }
  172.                         if(this._xscale < 0)
  173.                         {
  174.                            gotoAndStop(3);
  175.                            _root.SpawnSBub(this._x,this._y);
  176.                         }
  177.                      }
  178.                      else
  179.                      {
  180.                         gotoAndStop(2);
  181.                         gotoAndStop(2);
  182.                      }
  183.                      if(pos < -50 || pos > 750)
  184.                      {
  185.                         _root.noFishesOK = _root.noFishesOK + 1;
  186.                         _root.redCount = _root.redCount - 1;
  187.                         this.removeMovieClip();
  188.                      }
  189.                      this._x -= xSpeed;
  190.                   };
  191.                   resetEyesBiff = function()
  192.                   {
  193.                      clearInterval(colReniBiff);
  194.                      _root.Biff.gotoAndStop(1);
  195.                   };
  196.                   colControlBiff = function()
  197.                   {
  198.                      if(this.hitTest(_root.Biff) && _root.Biff.shield._alpha < 5)
  199.                      {
  200.                         _root.Biff.gotoAndStop(2);
  201.                         _root.dragallowBiff = 0;
  202.                         colReniBiff = setInterval(resetEyesBiff,_root.stunned);
  203.                         _root.energy = _root.energy - 1;
  204.                         _root.SpawnBlood(_root.Biff._x,_root.Biff._y);
  205.                      }
  206.                   };
  207.                   resetEyesBaff = function()
  208.                   {
  209.                      clearInterval(colReniBaff);
  210.                      _root.Baff.gotoAndStop(1);
  211.                      _root.dragallowBaff = 1;
  212.                   };
  213.                   colControlBaff = function()
  214.                   {
  215.                      if(this.hitTest(_root.Baff) && _root.Biff.shield._alpha < 5)
  216.                      {
  217.                         _root.Baff.gotoAndStop(2);
  218.                         _root.dragallowBaff = 0;
  219.                         colReniBaff = setInterval(resetEyesBaff,_root.stunned);
  220.                         _root.energy = _root.energy - 1;
  221.                         _root.SpawnBlood(_root.Baff._x,_root.Baff._y);
  222.                      }
  223.                   };
  224.                   onEnterFrame = function()
  225.                   {
  226.                      FishControl();
  227.                      colControlBiff();
  228.                      colControlBaff();
  229.                      if(_root.countLevel > 9)
  230.                      {
  231.                         this._rotation = Math.sin((- _root.absFrames) / 30) * 10;
  232.                         if(this._xscale < 0)
  233.                         {
  234.                            this._y += Math.sin(_root.absFrames / 30) * sinfact * -1;
  235.                         }
  236.                         if(this._xscale > 0)
  237.                         {
  238.                            this._y += Math.sin(_root.absFrames / 30) * sinfact;
  239.                         }
  240.                      }
  241.                      if(_root._currentFrame != 15)
  242.                      {
  243.                         this.removeMovieClip();
  244.                      }
  245.                      if(_root.lineCol.hitTest(this._x,this._y,true))
  246.                      {
  247.                         _root.noFishesOK = _root.noFishesOK + 1;
  248.                         _root.redCount = _root.redCount - 1;
  249.                         if(_root.linecolor == 3)
  250.                         {
  251.                            _root.score += _root.countLevel * 10;
  252.                            onEnterFrame = function()
  253.                            {
  254.                               this._alpha -= 5;
  255.                               this._x = this._x - 1;
  256.                               this._y -= 1.5;
  257.                               if(this._alpha < 5)
  258.                               {
  259.                                  this.removeMovieClip();
  260.                               }
  261.                            };
  262.                            this.Tail.Anim.stop();
  263.                            x = 0;
  264.                            while(x < 10)
  265.                            {
  266.                               _root.attachMovie("Bloodstar","Bloodstar" + _root.bloodcount,_root.bloodcount,{_x:this._x,_y:this._y});
  267.                               _root.bloodcount = _root.bloodcount + 1;
  268.                               if(_root.bloodcount > 85)
  269.                               {
  270.                                  _root.bloodcount = 20;
  271.                               }
  272.                               x++;
  273.                            }
  274.                         }
  275.                         else
  276.                         {
  277.                            if(_root.score > _root.countLevel * 5)
  278.                            {
  279.                               _root.score -= _root.countLevel * 5;
  280.                            }
  281.                            x = 0;
  282.                            while(x < 18)
  283.                            {
  284.                               _root.attachMovie("Bloodfree","Bloodfree" + _root.bloodcount,_root.bloodcount,{_x:this._x,_y:this._y});
  285.                               _root.bloodcount = _root.bloodcount + 1;
  286.                               if(_root.bloodcount > 85)
  287.                               {
  288.                                  _root.bloodcount = 20;
  289.                               }
  290.                               this._alpha -= 3;
  291.                               x++;
  292.                            }
  293.                            this.removeMovieClip();
  294.                         }
  295.                      }
  296.                   };
  297.                   stop();
  298.                   break;
  299.                }
  300.                if(eval("\x01") == 312)
  301.                {
  302.                   set("\x01",eval("\x01") - 312);
  303.                }
  304.                break;
  305.             }
  306.             set("\x01",eval("\x01") + 92);
  307.          }
  308.       }
  309.    }
  310. }
  311.